package ru.rchervot.sanasar.client.model.filters;



public class FilterFullText implements Filter {
	public static final String NAME = "FullText";
	
	public FilterFullText() {
	}
	
	public FilterFullText(String ftsQuery) {
		this();
		
		this.ftsQuery = ftsQuery;
	}
	
	private String ftsQuery;

	public String getFtsQuery() {
		return ftsQuery;
	}

	public void setFtsQuery(String ftsQuery) {
		this.ftsQuery = ftsQuery;
	}
	
	@Override
	public boolean isEmpty() {
		return ftsQuery == null || ftsQuery.length() == 0;
	}
	
	@Override
	public String toString() {
		return NAME + "[ftsQuery: " + ftsQuery + "]";
	}

	@Override
	public String getName() {
		return NAME;
	}
	
}
